package service;

import java.util.List;

import util.web.Page;

import dao.AtMessageDao;
import entity.AtMessage;

public class AtMessageService {

	private AtMessageDao atMessageDao = new AtMessageDao();

	public void save(AtMessage atMessage) {
		atMessageDao.save(atMessage);
		
	}

	public List<AtMessage> findAtByProjectidAtwhoidcreatetime(String projectid,
			String replaywhoid, String lastclickattime) {
		
		return atMessageDao.findAtByProjectidAtwhoidcreatetime(projectid,replaywhoid,lastclickattime);
	}

	public Page<AtMessage> findAtmessageByreplaywhoidAndProject(int nowPageNum,
			String replaywhoid, String projectid) {
		
		return atMessageDao.findAtmessageByreplaywhoidAndProject(nowPageNum,replaywhoid,projectid);
	}
	
}
